home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / cross / ava-0.2.5.lha / ava-0.2.5 / examples / target.inc < prev    next >
Encoding:
Text File  |  1999-03-23  |  576 b   |  25 lines

  1. /*
  2.   target.inc
  3.  
  4.   An example of how to write target specification file for
  5.   design specific MPU boards.
  6.  
  7.   Uros Platise (c) 1999
  8. */
  9.  
  10. /* Declare Size of the eram segment (before device declaration!) */
  11. #define __ERAM_SIZE    0x1002
  12.  
  13. /* Declare MCU (AT90S8515 has enabled Wrap Around Option) */
  14. #arch AT90S8515
  15.  
  16. /* Memory mapped IO ports of my test board */
  17. #define _IO_PORTS    0x1000
  18.  
  19. /* Declare segments. Protect eram segment to clash with
  20.    the following port io registers. */
  21. seg abs=_IO_PORTS size=0x2 eram.ioports
  22.  
  23. #define ADC_DATA    _IO_PORTS
  24. #define ADC_CONTROL    _IO_PORTS+1
  25.